<template>
  <div>
        <el-table :data="rfiVendorData" border style="width: 100%">
            <el-table-column prop="vendorCode" align="center" label="供应商编码" width="100"></el-table-column>
            <el-table-column prop="vendorName" align="center" label="供应商名称" width="200"></el-table-column>

        </el-table>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        // 初始化表格数据
        rfiVendorData: []
      };
    },
    mounted() {
        this.query();
    },
    methods: {
      query(){
        this.axios.post(this.lib.config.host.vendorMgt + "/vendormgt/vsp/rfi/queryRfiVendor/" + this.$route.query.rfiId)
        .then((response)=> {
          this.rfiVendorData = response.data;
        })
        .catch((error)=> {
            console.log(error);
        });
      }
    }
  }
</script>